package com.project;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
@EnableAspectJAutoProxy
@MapperScan("com.project.mapper")
@EnableFeignClients("com.project.feign")
public class SpringAppliCationStart {
    public static void main(String[] args) {
        SpringApplication.run(SpringAppliCationStart.class,args);
    }

    @Bean
    public RestTemplate template(){
        return new RestTemplate();
    }
}
